package com.jzr.board.ui.adapter

import android.graphics.Color
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.cardview.widget.CardView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.jzr.board.R
import com.jzr.board.bean.BloodBean
import com.jzr.board.bean.CareLabelListBean
import com.jzr.board.bean.TemBean


class BloodAdapter(data: MutableList<BloodBean.DataBean>?) :
    BaseQuickAdapter<BloodBean.DataBean, BaseViewHolder>(
        R.layout.item_blood,
        data
    ) {



    override fun convert(helper: BaseViewHolder?, item: BloodBean.DataBean?) {

        helper?.setText(R.id.tvTimer,"测量时间 " + item?.createTime)
        helper?.setText(R.id.tvValueDbp, item?.dbp.toString())
        helper?.setText(R.id.tvValuePulse, item?.pulse.toString())
        helper?.setText(R.id.tvValueSbp, item?.sbp.toString())


    }

    private var onItemClick: onListItemClick? = null

    interface onListItemClick {
        fun onListItemClick(item: CareLabelListBean.DataBean?)
    }

    fun onListItemClick(onListItemClick: onListItemClick?) {
        this.onItemClick = onListItemClick
    }


}